package com.leo.foodmaster.admin.recipe.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.leo.foodmaster.admin.recipe.dto.RecipeTypeDTO;
import com.leo.foodmaster.admin.recipe.entity.RecipeTypeEntity;
import com.leo.foodmaster.commons.entity.Result;

import java.util.List;

/**
 * 菜品类型
 *
 * @author Mark sunlightcs@gmail.com
 * @since 1.0.0 2021-10-29
 */
public interface IRecipeTypeService extends IService<RecipeTypeEntity> {
	/**
	 * 条件分页查询
	 * @param page 分页参数
	 * @param name 查询条件
	 * @return IPage<RecipeTypeEntity>
	 */
	IPage<RecipeTypeEntity> pageList(IPage<RecipeTypeDTO> page, String name);

	/**
	 * 删除菜品分类
	 * @param ids 分类ids
	 * @return Result<Object>
	 */
	Result<Object> deleteBatchIds(List<Long> ids);
}
